var Pe=Object.defineProperty;var de=Object.getOwnPropertySymbols;var Le=Object.prototype.hasOwnProperty,Fe=Object.prototype.propertyIsEnumerable;var ne=(e,n,a)=>n in e?Pe(e,n,{enumerable:!0,configurable:!0,writable:!0,value:a}):e[n]=a,W=(e,n)=>{for(var a in n||(n={}))Le.call(n,a)&&ne(e,a,n[a]);if(de)for(var a of de(n))Fe.call(n,a)&&ne(e,a,n[a]);return e};var V=(e,n,a)=>(ne(e,typeof n!="symbol"?n+"":n,a),a);import{d as ae,r as k,m as y,c as w,a as r,w as c,b as v,o as O,e as b,t as M,f as p,g as se,$ as C,S as Ie,L as be,V as Be,h as Ue,i as Me,D as Ge,l as Je,M as He,j as K,F as pe,k as ge,n as Ve,p as Ke,q as xe,s as ze,u as je,A as Xe}from"./vendor.d0afe1c7.js";const Ye=function(){const n=document.createElement("link").relList;if(n&&n.supports&&n.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))s(o);new MutationObserver(o=>{for(const d of o)if(d.type==="childList")for(const f of d.addedNodes)f.tagName==="LINK"&&f.rel==="modulepreload"&&s(f)}).observe(document,{childList:!0,subtree:!0});function a(o){const d={};return o.integrity&&(d.integrity=o.integrity),o.referrerpolicy&&(d.referrerPolicy=o.referrerpolicy),o.crossorigin==="use-credentials"?d.credentials="include":o.crossorigin==="anonymous"?d.credentials="omit":d.credentials="same-origin",d}function s(o){if(o.ep)return;o.ep=!0;const d=a(o);fetch(o.href,d)}};Ye();var x;(function(e){e[e.SEARCH_RESULT=0]="SEARCH_RESULT",e[e.RESULT_TARGET_PAGE=1]="RESULT_TARGET_PAGE"})(x||(x={}));var B;(function(e){e[e.OPEN=0]="OPEN",e[e.CLOSE=1]="CLOSE"})(B||(B={}));var qe=ae({props:["maxStep","restStep","appStatus"],setup(e,n){const{emit:a}=n,s=k(""),o=()=>{if(!s.value)return y.warn("\u8BF7\u8F93\u5165\u95EE\u9898\u7F16\u53F7"),!1;a("toggleAppStatus")},d=f=>{s.value=f.target.value};return window.__setTopic=f=>{s.value=f},window.__getTopic=()=>s.value,{toggleAppStatus:o,APP_STATUS:B,topicInput:s,onTopicInputChange:d}}}),ve=(e,n)=>{const a=e.__vccOpts||e;for(const[s,o]of n)a[s]=o;return a};const We={style:{display:"flex","align-items":"center"}},Ze=b(" \xA0\xA0 "),Qe=b(" \xA0\xA0 ");function et(e,n,a,s,o,d){const f=v("a-tag"),D=v("a-input"),T=v("a-switch"),m=v("a-statistic"),h=v("a-row"),R=v("a-divider"),P=v("a-page-header");return O(),w("div",null,[r(P,{title:"\u8BB0\u5F55\u5DE5\u5177","sub-title":"\u8F85\u52A9\u8BB0\u5F55\u641C\u7D22\u884C\u4E3A"},{tags:c(()=>[r(f,{color:e.appStatus===e.APP_STATUS.OPEN?"green":"grey"},{default:c(()=>[b(M(e.appStatus===e.APP_STATUS.OPEN?"\u8BB0\u5F55\u4E2D":"\u672A\u5F00\u542F"),1)]),_:1},8,["color"])]),extra:c(()=>[p("div",We,[r(D,{onChange:e.onTopicInputChange,disabled:e.appStatus===e.APP_STATUS.OPEN,value:e.topicInput,class:"topic-input",placeholder:"\u8F93\u5165\u95EE\u9898\u7F16\u53F7",style:{width:"180px"}},null,8,["onChange","disabled","value"]),Ze,r(T,{checked:e.appStatus===e.APP_STATUS.OPEN,onClick:e.toggleAppStatus},null,8,["checked","onClick"]),Qe,p("span",null,M(e.appStatus===e.APP_STATUS.OPEN?"\u8BB0\u5F55\u4E2D":"\u672A\u5F00\u542F\u8BB0\u5F55"),1)])]),default:c(()=>[r(h,{type:"flex"},{default:c(()=>[r(m,{title:"\u5269\u4F59\u64CD\u4F5C\u6B65\u9AA4",value:`${e.restStep} / ${e.maxStep}`},null,8,["value"])]),_:1}),r(R)]),_:1})])}var tt=ve(qe,[["render",et]]);const nt="http://eroo.club:3001",oe=e=>`${nt}${e}`,at=async e=>(await se.get(`${oe("/search")}?keyword=${e}&engine=bing`)).data,st=async e=>(await se.get(`${oe("/extract/web")}?url=${e}`)).data,ot=async e=>(await se.post(`${oe("/record/action")}`,e)).data,ut=()=>window.getSelection?window.getSelection().toString():document.selection?document.selection.createRange().text:"",lt=(e=Date.now())=>{const n=new Date(e),a=n.getFullYear().toString().padStart(2,"0"),s=(n.getMonth()+1).toString().padStart(2,"0"),o=n.getDate().toString().padStart(2,"0"),d=n.getHours().toString().padStart(2,"0"),f=n.getMinutes().toString().padStart(2,"0"),D=n.getSeconds().toString().padStart(2,"0");return`${a}-${s}-${o} ${d}:${f}:${D}`},fe=()=>Math.random().toString(16).substring(2),_=class{constructor(n,a){V(this,"resultLength",0);V(this,"currentFocusResultIndex",0);if(this.resultLength=C(`.${_.findElementClassName}`).length,this.currentFocusResultIndex=-1,n){const[,s]=_.replaceSearchText(C(n).text(),a);C(`${n}`).html(s)}C.each(C(`.${_.findElementClassName}`),(s,o)=>{C(o).addClass(`${_.findElementClassName}-${s}`),C(o).data("top",C(o)[0].offsetTop),s===C(`.${_.findElementClassName}`).length-1&&C(o).addClass(`${_.findElementClassName}-end`)})}next({elementClassName:n}){this.currentFocusResultIndex=this.currentFocusResultIndex+1,C(`.${_.findElementClassName}`).removeClass(`${_.findElementClassName}-active`);const a=C(`.${_.findElementClassName}-${this.currentFocusResultIndex}`),s=a.data("top");a.addClass(`${_.findElementClassName}-active`),C(`.${n}`)[0].scrollTo(0,s-91),a.hasClass(`${_.findElementClassName}-end`)&&y.info("\u5DF2\u7ECF\u662F\u6700\u540E\u4E00\u4E2A\u4E86")}};let N=_;V(N,"findElementClassName","__find-item"),V(N,"lastFindKeyword",""),V(N,"clearSearchText",n=>{C(`.${_.findElementClassName}`).attr("class",_.findElementClassName);const a=new RegExp(`<span class="${_.findElementClassName}">(.*?)</span>`,"igm");return n.replace(a,"$1")}),V(N,"replaceSearchText",(n,a)=>{_.lastFindKeyword&&(n=_.clearSearchText(n));const s=new RegExp(`${a}`,"igm");if(!s.test(n))return[!1,n];const d=n.replace(s,`<span class="${_.findElementClassName}">${a}</span>`);return _.lastFindKeyword=a,[!0,d]});const rt=["bilibili.com"],it=e=>(e=JSON.parse(JSON.stringify(e)),e.filter(n=>!rt.some(a=>n.href.includes(a)))),Z=100,he="result-content",Q=3,ct=500;var dt=ae({components:{HeaderAction:tt,SearchOutlined:Ie,LeftOutlined:be,VerticalAlignBottomOutlined:Be,VerticalAlignTopOutlined:Ue,VerticalAlignMiddleOutlined:Me,DownOutlined:Ge},setup(){const e=k(B.CLOSE),n=k(""),a=k([]),s=k([]),o=k(Z),d=k(!1),f=k(""),D=k(new N),T=k(""),m=k(0),h=k(0),R=k([]),P=k([]),J=k(""),$=()=>a.value[a.value.length-1]||{},U=()=>$().type===x.RESULT_TARGET_PAGE,L=()=>$().type===x.SEARCH_RESULT,z=()=>JSON.parse(JSON.stringify(s.value.map(t=>t.datas))),A=t=>{var i;t=t||{},t.state=W(W({},JSON.parse(JSON.stringify((i=t==null?void 0:t.state)!=null?i:{}))),JSON.parse(JSON.stringify({digests:s.value,content:a.value,keyword:n.value,loading:d.value,findKeyword:f.value,recordStack:R.value,stepCount:o.value,curResultChunk:m.value,curTargetPageResultChunk:h.value,topic:window.__getTopic(),appStatus:e.value}))),t.undo=t.undo||(({op:u})=>{const{state:l}=u;s.value=l.digests,a.value=l.content,n.value=l.keyword,d.value=l.loading,f.value=l.findKeyword,R.value=l.recordStack,o.value=l.stepCount,m.value=l.curResultChunk,h.value=l.curTargetPageResultChunk,J.value=l.topic,window.__setTopic(l.topic),e.value=l.appStatus}),P.value.push(t)},Y=()=>{if(!P.value.length){y.info("\u6CA1\u6709\u53EF\u4EE5\u64A4\u9500\u7684\u6B65\u9AA4");return}if(P.value.length===1){y.info("\u5DF2\u7ECF\u662F\u6700\u524D\u4E00\u6B65\u4E86");return}const t=P.value.pop();t==null||t.undo({op:t})},F=(t=-1)=>{o.value=o.value+t,o.value<=0&&(q(),y.info("\u64CD\u4F5C\u6B65\u9AA4\u8FBE\u5230\u4E0A\u9650\uFF0C\u81EA\u52A8\u7ED3\u675F\u672C\u6B21\u6570\u636E\u6536\u96C6"))},ee=()=>{d.value=!0},S=()=>{d.value=!1},H=()=>{a.value.pop()},j=()=>{var i,u,l,g,E;const t=$();return{keyword:n.value,triggerAt:Date.now(),stackLength:a.value.length,step:Z-o.value,traceId:T.value,currentPageInfo:{title:(u=(i=t==null?void 0:t.data)==null?void 0:i.title)!=null?u:"",type:(l=t==null?void 0:t.type)!=null?l:"",href:(E=(g=t==null?void 0:t.data)==null?void 0:g.href)!=null?E:"",scrollTop:C(`.${he}`).scrollTop()||0}}},me=()=>L()?te():le(),I=(t,i={})=>{R.value.push(W({action:t,details:i,pageContentInViewport:me(),digests:z(),operateStack:JSON.parse(JSON.stringify(P.value))},j()))},Se=async()=>{A(),ee();try{const t=await at(n.value);S(),a.value=[],t.data=it(t.data),a.value.push({type:x.SEARCH_RESULT,data:t.data}),m.value=0,F(),I("PRESS_SEARCH",{keyword:n.value,result:t.data})}catch{}},ue=t=>{const i=m.value*Q,u=i+Q;for(let l=i;l<u;l++)t(l)},Ce=()=>JSON.parse(JSON.stringify($())),te=()=>{const t=[],i=$();return ue(u=>{i.data[u]&&t.push(i.data[u])}),t},Ee=()=>JSON.parse(JSON.stringify(te())),ye=async t=>{A(),d.value=!0;const i=await st(t);if(d.value=!1,i.code===0){const u=Je.exports.chunk(C(`<div>${i.data.html}</div>`.replace(/<\/(div|p)>/gim,"</div>!!--break-line--!!")).text().replace(/\s+/gim," ").replace(/<\/?.+?>/gim," ").replace(/[\r\n]/gim,`
`).replace(/!!--break-line--!!/gim,"<br />"),ct).map(l=>[...new Set(l.join("").split("<br />"))].join("<br />"));a.value.push({type:x.RESULT_TARGET_PAGE,data:{html:u,href:i.data.href}}),h.value=0,F(),I("LOAD_PAGE_DETAIL",{href:t,pageMainContent:u})}else y.error(i.message)},le=(t,i=!0)=>{const u=$();if(!u.data)return;const l=u.data.html[t||h.value];try{if(!i)return C.trim(C(`<div>${l}</div>`).text())}catch(g){console.error(g)}return C.trim(l)},Te=t=>(A(),t=t||ut(),t?U()?(s.value.push({datas:[{title:`${lt()}`,desc:t,chunkIndex:h.value}],checked:!1}),F(),I("ADD_DIGEST",{text:t}),!0):(y.info("\u8BF7\u5728\u5185\u5BB9\u8BE6\u60C5\u9875\u6807\u6CE8"),!1):(y.info("\u65E0\u9009\u4E2D\u5185\u5BB9"),!1)),re=()=>{a.value=[],n.value="",s.value=[],d.value=!1,f.value="",R.value=[],D.value=new N,T.value="",o.value=Z,J.value=""},ke=()=>{He.confirm({okText:"\u786E\u8BA4\u91CD\u7F6E",cancelText:"\u53D6\u6D88",title:"\u786E\u5B9A\u91CD\u7F6E\u5417\uFF1F",onOk(){re()}})},q=()=>{if(A(),e.value===B.OPEN){e.value=B.CLOSE,I("RECORD_CLOSE",{digests:z()}),y.success("\u6570\u636E\u5DF2\u8BB0\u5F55\u6210\u529F");const t={topic:J.value,userAgent:navigator.userAgent,actions:R.value,digests:s.value,tractId:T.value,createdAt:Date.now()};return ot(t),re(),t}else e.value=B.OPEN,T.value=`${fe()}${fe()}`,J.value=window.__getTopic(),I("RECORD_START",{})},Ae=()=>{if(L()){if(m.value<=0){y.info("\u5DF2\u7ECF\u5728\u9876\u7AEF\u4E86");return}A(),m.value=m.value-1}else if(U()){if(h.value<=0){y.info("\u5DF2\u7ECF\u5728\u9876\u7AEF\u4E86");return}A(),h.value=h.value-1}F(),I("TRIGGER_SCROLL_UP"),setTimeout(()=>{D.value=new N})},we=()=>{const t=$();return L()?Math.ceil(t.data.length/Q)-1:U()?t.data.html.length:0},Oe=()=>{const t=$();if(L()){if(m.value>=Math.ceil(t.data.length/Q)-1){y.info("\u6700\u540E\u4E00\u9875\u4E86");return}A(),m.value=m.value+1}else if(U()){if(h.value>=t.data.html.length-1){y.info("\u6700\u540E\u4E00\u9875\u4E86");return}A(),h.value=h.value+1}F(),I("TRIGGER_SCROLL_DOWN"),setTimeout(()=>{D.value=new N})},Re=()=>{if(L()){if(m.value===0){y.info("\u5DF2\u7ECF\u5728\u9876\u7AEF\u4E86");return}A(),m.value=0}else if(U()){if(h.value===0){y.info("\u5DF2\u7ECF\u5728\u9876\u7AEF\u4E86");return}A(),h.value=0}F(),I("TRIGGER_SCROLL_TO_TOP")},Ne=()=>{A(),H(),F(),I("PAGE_GO_BACK")},$e=()=>{const t=JSON.parse(JSON.stringify($()));if(L())ue(i=>{const u=t.data[i],[l,g]=N.replaceSearchText(u.title,f.value),[E,G]=N.replaceSearchText(u.summary,f.value);u.title=g,u.summary=G});else if(U()){const i=t.data.html[h.value],[u,l]=N.replaceSearchText(i,f.value);t.data.html[h.value]=l}H(),a.value.push(t),setTimeout(()=>{D.value=new N})},De=t=>{n.value=t},ie=t=>{window.__setTopic(t)},ce={CONTENT_TYPE:x,open:()=>e.value===B.OPEN?!1:(q(),!0),over:()=>{if(e.value===B.CLOSE)return!1;const t=q();return JSON.parse(JSON.stringify(t))},setTopic:ie,findKeyword:f,keyword:n,setKeyword:De,search:Se,find:$e,content:a,getContentStackTop:$,popContentStack:H,getCurrentResultChunkList:te,getCurrentResultChunkListDeep:Ee,getCurTargetPageResultChunkText:le,getPageContent:ye,addDigest:Te,digests:s,digestDescGetter:t=>t.map(i=>i.desc).join(""),mergeDigest:(...t)=>{if(t.forEach(E=>{s.value[E]&&(s.value[E].checked=!0)}),s.value.reduce((E,G)=>G.checked?E+1:E,0)<=1)return y.info("\u8BF7\u9009\u62E9\u4E24\u4E2A\u4EE5\u4E0A\u7684\u6458\u8981\u8FDB\u884C\u5408\u5E76"),!1;A();let u;const l=[],g=z();for(let E=0;E<s.value.length;E++){const G=s.value[E];G.checked&&(l.push(E),u?u.datas=[...u.datas,...G.datas]:u=G),G.checked=!1}for(let E=l.length-1;E>=1;E--)s.value.splice(l[E],1);return F(),I("MERGE_DIGEST",{merges:l,before:g,after:z()}),!0},rmDigest:t=>{const i=s.value.findIndex(u=>u===t);s.value.splice(i,1)},changeDigestIndex:(t,i)=>{const u=s.value.findIndex(g=>g===t),l=s.value[u];if(u===0){y.info("\u5DF2\u7ECF\u5728\u6700\u524D\u4E86");return}if(u===s.value.length-1){y.info("\u5DF2\u7ECF\u5728\u6700\u540E\u4E86");return}s.value.splice(u,1),s.value.splice(u+i,0,l)},getDigestsValue:()=>JSON.parse(JSON.stringify(s.value)),stepCount:o,MAX_STEP_COUNT:Z,APP_STATUS:B,appStatus:e,toggleAppStatus:q,scrollUp:Ae,scrollDown:Oe,scrollToTop:Re,doBack:Ne,loading:d,findNext:()=>{D.value.next({elementClassName:he})},curResultChunk:m,getCurrentResultDeepClone:Ce,curTargetPageResultChunk:h,getCurPageChunkSize:we,isResultContentPage:U,isSearchResultPage:L,reset:ke,undo:Y,coverActions:t=>{const u=JSON.parse(JSON.stringify(t)).pop().operateStack;console.log(u),u.forEach(l=>{l.undo=()=>{const g=l.state;ie(g.topic),s.value=g.digests,a.value=g.content,n.value=g.keyword,d.value=g.loading,f.value=g.findKeyword,R.value=g.recordStack,o.value=g.stepCount,m.value=g.curResultChunk,h.value=g.curTargetPageResultChunk,J.value=g.topic,setTimeout(()=>{e.value=g.appStatus})}}),P.value=u,Y()},ops:P};return window.__operation=ce,ce}});const X=e=>(Ke("data-v-388c5faa"),e=e(),xe(),e),pt={class:"main-wrap"},gt={key:0,class:"overlay"},vt={style:{"margin-top":"-8px",display:"flex","justify-content":"space-between"}},ft=b(" \xA0 "),ht={style:{"margin-right":"12px"}},_t=b("\u64A4\u9500"),mt=b(" \xA0 "),St=b("\u91CD\u7F6E"),Ct={class:"content-container"},Et={class:"left"},yt={style:{"white-space":"nowrap",display:"flex","align-items":"center"}},Tt=X(()=>p("span",null,"\u4E0B\u4E00\u4E2A",-1)),kt=X(()=>p("span",null,"\u5411\u4E0A\u7FFB\u9875",-1)),At=X(()=>p("span",null,"\u5411\u4E0B\u7FFB\u9875",-1)),wt={style:{"margin-right":"8px"}},Ot={key:0},Rt={key:1},Nt=X(()=>p("span",null,"\u56DE\u5230\u9876\u7AEF",-1)),$t={class:"result-content"},Dt={key:0},Pt={class:"result-item"},Lt={class:"result-item-title"},Ft=["onClick","innerHTML","data-url"],It=["innerHTML"],bt={key:0},Bt={key:1,style:{width:"717px"}},Ut=["innerHTML"],Mt={key:2},Gt=X(()=>p("div",{class:"center content-tip"}," \u6682\u65E0\u5185\u5BB9 ",-1)),Jt=[Gt],Ht={class:"right"},Vt=b("\u5C06\u9009\u4E2D\u5185\u5BB9\u6DFB\u52A0\u5230\u6458\u8981"),Kt=b("\u5408\u5E76\u6458\u8981"),xt={style:{position:"relative"}},zt={style:{position:"absolute",left:"-24px"}};function jt(e,n,a,s,o,d){const f=v("header-action"),D=v("LeftOutlined"),T=v("a-button"),m=v("a-input-search"),h=v("DownOutlined"),R=v("a-tooltip"),P=v("a-divider"),J=v("VerticalAlignTopOutlined"),$=v("VerticalAlignBottomOutlined"),U=v("VerticalAlignMiddleOutlined"),L=v("a-card"),z=v("a-checkbox"),A=v("a-list-item-meta"),Y=v("a-list-item"),F=v("a-list"),ee=v("a-spin");return O(),w("div",pt,[r(f,{"max-step":e.MAX_STEP_COUNT,"rest-step":e.stepCount,"app-status":e.appStatus,onToggleAppStatus:e.toggleAppStatus},null,8,["max-step","rest-step","app-status","onToggleAppStatus"]),p("div",{class:"op-wrap",style:Ve(e.appStatus===e.APP_STATUS.CLOSE?"opacity: .3;":"")},[e.appStatus===e.APP_STATUS.CLOSE?(O(),w("div",gt)):K("",!0),p("div",vt,[p("div",null,[r(T,{type:"link",disabled:!e.content.length,size:"large",onClick:e.doBack},{icon:c(()=>[r(D)]),default:c(()=>[b(" \u8FD4\u56DE("+M(e.content.length)+") ",1)]),_:1},8,["disabled","onClick"]),ft,r(m,{class:"keyword-input",placeholder:"\u641C\u7D22\u5173\u952E\u8BCD",size:"large","enter-button":"",value:e.keyword,"onUpdate:value":n[0]||(n[0]=S=>e.keyword=S),onSearch:e.search},null,8,["value","onSearch"])]),p("div",ht,[r(T,{onClick:e.undo},{default:c(()=>[_t]),_:1},8,["onClick"]),mt,r(T,{onClick:e.reset,type:"dashed",danger:"",ghost:""},{default:c(()=>[St]),_:1},8,["onClick"])])]),r(ee,{spinning:e.loading},{default:c(()=>[p("div",Ct,[p("div",Et,[p("div",null,[r(L,{title:"\u6D4F\u89C8\u5185\u5BB9",class:"contents"},{extra:c(()=>[p("div",yt,[r(m,{placeholder:"\u5185\u5BB9\u67E5\u627E",value:e.findKeyword,"onUpdate:value":n[1]||(n[1]=S=>e.findKeyword=S),style:{width:"150px","margin-right":"12px"},onSearch:e.find},null,8,["value","onSearch"]),r(R,{placement:"top"},{title:c(()=>[Tt]),default:c(()=>[r(T,{onClick:n[2]||(n[2]=S=>e.findNext())},{icon:c(()=>[r(h)]),_:1})]),_:1}),r(P,{type:"vertical"}),r(R,{placement:"top"},{title:c(()=>[kt]),default:c(()=>[r(T,{style:{"margin-right":"8px"},onClick:e.scrollUp},{icon:c(()=>[r(J)]),_:1},8,["onClick"])]),_:1}),r(R,{placement:"top"},{title:c(()=>[At]),default:c(()=>[r(T,{style:{"margin-right":"8px"},onClick:e.scrollDown},{icon:c(()=>[r($)]),_:1},8,["onClick"])]),_:1}),p("div",wt,[e.isSearchResultPage()?(O(),w("span",Ot,M(e.curResultChunk+1)+"/"+M(e.getCurPageChunkSize()+1),1)):K("",!0),e.isResultContentPage()?(O(),w("span",Rt,M(e.curTargetPageResultChunk+1)+"/"+M(e.getCurPageChunkSize()),1)):K("",!0)]),r(R,{placement:"top"},{title:c(()=>[Nt]),default:c(()=>[r(T,{onClick:e.scrollToTop},{icon:c(()=>[r(U)]),_:1},8,["onClick"])]),_:1})])]),default:c(()=>[p("div",$t,[e.isSearchResultPage()?(O(),w("div",Dt,[(O(!0),w(pe,null,ge(e.getCurrentResultChunkList(),(S,H)=>(O(),w("div",null,[p("div",Pt,[p("span",Lt,[p("strong",{class:ze(`result-item-index-${H}`),onClick:j=>e.getPageContent(S.mdurl||S.href),innerHTML:S.title,"data-url":S.mdurl||S.href},null,10,Ft)]),p("div",{class:"result-item-summary",innerHTML:S.summary||S.rich},null,8,It)])]))),256)),e.getContentStackTop().data.length?K("",!0):(O(),w("div",bt," \u65E0\u641C\u7D22\u7ED3\u679C "))])):K("",!0),e.isResultContentPage()?(O(),w("div",Bt,[p("div",{class:"content-container-element",style:{width:"717px","word-break":"break-all","white-space":"pre-wrap"},innerHTML:e.getCurTargetPageResultChunkText()},null,8,Ut)])):K("",!0),e.content.length?K("",!0):(O(),w("div",Mt,Jt))])]),_:1})])]),p("div",Ht,[r(L,{title:"\u6458\u8981",class:"summaries"},{extra:c(()=>[r(T,{onClick:e.addDigest,type:"primary",style:{"margin-right":"4px"}},{default:c(()=>[Vt]),_:1},8,["onClick"]),r(T,{onClick:e.mergeDigest},{default:c(()=>[Kt]),_:1},8,["onClick"])]),default:c(()=>[p("div",null,[r(F,{"item-layout":"horizontal","data-source":e.digests},{renderItem:c(({item:S,index:H})=>[r(Y,null,{actions:c(()=>[r(z,{checked:S.checked,"onUpdate:checked":j=>S.checked=j},null,8,["checked","onUpdate:checked"])]),default:c(()=>[r(A,{description:e.digestDescGetter(S.datas)},{title:c(()=>[p("div",xt,[p("span",zt,M(H+1),1),p("span",null,[(O(!0),w(pe,null,ge(S.datas,j=>(O(),w("div",null,M(j.title),1))),256))])])]),_:2},1032,["description"])]),_:2},1024)]),_:1},8,["data-source"])])]),_:1})])])]),_:1},8,["spinning"])],4)])}var Xt=ve(dt,[["render",jt],["__scopeId","data-v-388c5faa"]]);const Yt=p("div",{class:"bg"},null,-1),qt=ae({setup(e){return(n,a)=>(O(),w("div",null,[Yt,r(Xt)]))}});const _e=je(qt);_e.use(Xe);_e.mount("#app");
